home *** CD-ROM | disk | FTP | other *** search
/ Floppyshop 2 / Floppyshop - 2.zip / Floppyshop - 2.iso / art&graf.ix / art-0039 / source / dcfileio.def < prev    next >
Text File  |  1997-04-16  |  2KB  |  44 lines

  1. DEFINITION MODULE DCFileIO;
  2.  
  3. (*---------------------------------------------------------------------*)
  4. (*   File I/O module for DegasConvert                                  *)
  5. (*                                                                     *)
  6. (*   Functions:                                                        *)
  7. (*      Load & Save Degas Format Pictures                              *)
  8. (*      Load 'TNY' pictures and NEO and DOODLE and ...                 *)
  9. (*                                                *)
  10. (*  Amendments:                                                        *)
  11. (*  27/ 8/89 LGM : Remove DeleteFile.                                  *)
  12. (*                 Add routines to load various types of pictures.     *)
  13. (*                 Thanx to Ron Wood for asking for this extra         *)
  14. (*                 facility and causing a re-write of the loading      *)
  15. (*                 routines ( they must have needed it... ).           *)
  16. (*                                                                     *)
  17. (*  ??/11/88 LGM      : Save '.IMG' Files.                             *)
  18. (*                      Load 'Tiny' files with extension 'TN*'         *)
  19. (*                                                                     *)
  20. (*  ??/ 8/87 LGM : Original                                            *)
  21. (*---------------------------------------------------------------------*)
  22. FROM Strings          IMPORT String;
  23.  
  24. FROM DCGlobal         IMPORT DegasPicture;
  25.  
  26. FROM SYSTEM           IMPORT ADDRESS;
  27.  
  28.  
  29. PROCEDURE LoadDegasFile ( VAR Picture  : DegasPicture;
  30.                           VAR filename : String ) : BOOLEAN;
  31.      (* TRUE if user selected and Loaded a valid Degas or TNY file *)
  32.  
  33.  
  34. PROCEDURE SaveDegasFile ( VAR Picture  : DegasPicture ) : BOOLEAN;
  35.      (* TRUE if user actually saved the file *)
  36.  
  37.  
  38. PROCEDURE SaveImageFile (     Length   : CARDINAL;
  39.                           IMGFilePtr   : ADDRESS ) : BOOLEAN;
  40.      (* TRUE if user actually saved the file *)
  41.  
  42.  
  43. END DCFileIO.  
  44.